package com.ssm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Locale;

@Controller
public class FourAndFourController {


    @RequestMapping(value ="/nopage",method = RequestMethod.GET)
    public String pageNotFound(Locale locale, Model model) throws Exception {
                return "404";
             }

    @RequestMapping(value = "/error", method = RequestMethod.GET)
    public String innerError(Locale locale, Model model) throws Exception {
                 return "404";
           }
    @RequestMapping(value = "/false", method = RequestMethod.GET)
    public String isFalse(Locale locale, Model model) throws Exception {
        return "404";
    }

}

